package com.example.service;

import com.example.model.hosp.Hospital;
import com.example.vo.hosp.HospitalQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface HospitalService {
    void save(Map<String, Object> parameterMap);

    Hospital getByHostcode(String hoscode);

    //条件查询带分页
    Page<Hospital> selectHospPage(Integer page, Integer limit, HospitalQueryVo hospitalQueryVo);

    void updateStatus(String id, Integer status);

    Map<String, Object> getHospById(String id);

    String getHospName(String hoscode);

    /**
     * 根据医院名称进行查询
     * @param hosname
     * @return
     */
    List<Hospital> findByHosName(String hosname);

    /**
     * 根据医院编号获取挂号详情
     * @param hoscode
     * @return
     */
    Map<String, Object> item(String hoscode);
}
